﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopTaohuaCategory : BaseObject
    {
        //begin
        public TopTaohuaCategory(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _CateId;
        [Size(SizeAttribute.Unlimited)]
        public string CateId
        {
            get
            {
                return _CateId;
            }
            set
            {
                SetPropertyValue("CateId", ref _CateId, value);
            }
        }
        private string _Name;
        [Size(SizeAttribute.Unlimited)]
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetPropertyValue("Name", ref _Name, value);
            }
        }
        private string _ParentId;
        [Size(SizeAttribute.Unlimited)]
        public string ParentId
        {
            get
            {
                return _ParentId;
            }
            set
            {
                SetPropertyValue("ParentId", ref _ParentId, value);
            }
        }
        private long _CateLevel;
        public long CateLevel
        {
            get
            {
                return _CateLevel;
            }
            set
            {
                SetPropertyValue("CateLevel", ref _CateLevel, value);
            }
        }
        private long _SortOrder;
        public long SortOrder
        {
            get
            {
                return _SortOrder;
            }
            set
            {
                SetPropertyValue("SortOrder", ref _SortOrder, value);
            }
        }
        private TopTaohuaSearchItems _TaohuaSearchItems;
        [Association("TaohuaSearchItemsCatePaths", typeof(TopTaohuaSearchItems))]
        public TopTaohuaSearchItems TaohuaSearchItems
        {
            get
            {
                return _TaohuaSearchItems;
            }
            set
            {
                SetPropertyValue("TaohuaSearchItems", ref _TaohuaSearchItems, value);
            }
        }
        //end

    }
}
